{config_load file="$language/lang.conf" section="address_book"}
<h3 class="ntitle"><img src="{$tpl_path}images/ntitlebg.png" alt="" width="43" height="39">{#heading_address#}</h3>
<hr />

{$FORM_ACTION}
{if $error!=''}
<div class="warning">
	<div>{$error}</div>
</div>
{/if}


<h3 class="btitle">{#title_standard#}</h3>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td valign="top" width="50%">
<div class="info">
<div>{#text_standard#}</div>
</div>

    </td>

    <td valign="top">
<div class="basic">
    <div class="baseinfo">
		<div style="float: left;">
			<p><strong>{#title_standard#}</strong></p>
            <p>{$ADDRESS_DEFAULT}</p>
		</div>
	<div class="clr"></div>
    </div></div>
    </td>
  </tr>
</table>


<h3 class="btitle">{#title_addresses#}</h3>
<br />



<table class="cblock" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_left_top.gif" width="3" height="3" alt="" /></td>
                  <td class="cblock-top"><img src="{$tpl_path}spacer.png" width="1" height="3" alt="" /></td>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_right_top.gif" width="3" height="3" alt="" /></td>
                </tr>
                <tr valign="top">

		<td class="cblock-left"></td>

		<td>
<table width="100%" border="0" cellspacing="1" cellpadding="5" class="bgcolor4">
{foreach name=aussen item=addresses from=$addresses_data}
<tr class="bgcolor1">
<th><strong>{$addresses.NAME}</strong> {if $addresses.PRIMARY=='1'}<em>({#title_standard#})</em> {/if}</th>
<th align="right">{$addresses.BUTTON_EDIT} {$addresses.BUTTON_DELETE}</th>
</tr>
<tr class="bgcolor1">
<td colspan="2">{$addresses.ADDRESS}</td>
</tr>
{/foreach}

</table>
		</td>

		<td class="cblock-right"></td>
                </tr>
                <tr>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_left_bottom.gif" width="3" height="7" alt="" /></td>
                  <td class="cblock-bottom"><img src="{$tpl_path}spacer.png" width="1" height="7" alt="" /></td>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_right_bottom.gif" width="3" height="7" alt="" /></td>
                </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr>
<td><a class="fbutton" href="account.php">Повернутись</a></td><td align="right"><a class="fbutton" href="address_book_process.php">Додати адресу</a></td>
</tr>
</table>





<br />
<div class="warning">
	<div>{$ADDRESS_COUNT}</div>
</div>